<?php
	require 'AppController.php';
	require 'ui/UIMenu.php';
	
	//verify id:
	if(isset($_GET["id"]) && !empty($_GET["id"])) {
		$id = $_GET["id"];
			
		$controller = new AppController();

		$app = $controller->getApp($id);
		
		$uimenu = new UIMenu($app->menu);
	}
	else {
		exit('no id is set');
	}
?>
<html>

<body>
	<center>
		<div id="banner"> 
			<?php echo $app->event->banner;?> <--banner
		</div>
		<br>
		<div id="eventName">
			<?php echo $app->event->name;?>
		</div>
		
		<br>
		
		<div id="menu">
			<?php echo $uimenu->showMenu();?>
		</div>
		
		<br>
		
		<div id="footer">
		</div>
		
	<center>
</body>

</html>
